<template>
	<view class="statement">
		<view class="repair_main" v-for="(item,index) in arrList" :key="index">
			<view class="title" v-if="item.title!=''">
				<view class="repair-left" />
				<text>{{item.title}}</text>
			</view>
			<view class="title2" v-if="item.title2&&item.title2!=''">
				<text>{{item.title2}}</text>
			</view>
			<view class="card-detail">
				<view class="ful-detail">
					<view class="detail-left">{{item.name}}</view>
					<view class="detail-right" v-if="item.form_type == 'text'"
						:style="{backgroundColor:isPdf?'#fff':'#F5F6F8'}">
						<u--textarea border="none" v-model="item.value" auto-height height="40" :disabled="isPdf"
						placeholder=" " autoHeight placeholder-style="font-size: 28rpx;color: #999999;backgroundColor:#999999;" />
					</view>
					<view class="border_" v-if="isPdf" />
					<view class="detail-right" v-if="item.form_type == 'select'"
						:style="{backgroundColor:isPdf?'#fff':'#F5F6F8'}">
						<view style="flex: 1;">
							<radio-group  @change="(e)=>changeR(e,index)">
								<label style="margin-right: 20px;" v-for="(i,ind) in item.setting">
									<radio :value="i" :checked="item.value==(ind+1)" :disabled="isPdf">{{i}}</radio>
								</label>
							</radio-group>
						</view>
					</view>
					<view class="border_" v-if="isPdf" />
					<view class="detail-right" v-if="item.form_type == 'select2'"
						:style="{backgroundColor:isPdf?'#fff':'#F5F6F8'}">
						<view class="dis f_13" v-for="(i,ind) in item.setting">
							<view class="">{{i.set_name}}</view>
							<view class="">
								<view style="flex: 1;">
									<radio-group>
										<label style="margin-right: 20px;" v-for="(j,jin) in i.value">
											<radio :value="j">{{j}}</radio>
										</label>
									</radio-group>
								</view>
							</view>
						</view>
					</view>
					<view class="border_" v-if="isPdf" />
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			arrList: {
				type: Array,
				default:  [{
						form_type: "text",
						title: "保养前系统状态检查",
						name: "客户主诉",
						setting: [],
						value: ""
					},
					{
						form_type: "text",
						title: "",
						name: "检查故障信息, 故障代码摘录",
						setting: [],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "功能检查及系统评价",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "X-射线管曝光计数",
						setting: ["✔", "/"],
						value: ""
					},

					{
						form_type: "select",
						title: "预防性保养",
						title2:'1.图像处理系统',
						name: "检查总电源电压",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "检查机房温湿度",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "外观检查及清理",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "鼠标、键盘、ACE控制台检查及清理",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "检查轨道和电缆",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "检查图像处理系统内电缆及接头检查",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "清理各电路板、滤网及风扇积尘",
						setting: ["✔", "/"],
						value: ""
					},{
						form_type: "select",
						title: "",
						name: "检查系统内风扇、ACE控制台后风扇运作状况",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						title2:'2.显示器',
						name: "检查显示器外观",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "检查显示器安装状况",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "清洁显示器外观及屏幕",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						title2: "3.三维重建工作站",
						name: "检查计算机系统及清理",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "鼠标、键盘检查及清理",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "检查计算机内电缆及接头",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "清理计算机内各电路板、滤网及风扇积尘",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "检查系统内风扇、CPU后风扇运作状况",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						title2: "4.X线发生器",
						name: "高压电缆绝缘层及屏蔽层检查：绝缘层应无破损，屏蔽层于地电阻不能超过 1Q/m",
						setting: ["✔", "/"],
						value: ""
					},{
						form_type: "select",
						title: "",
						name: "清理高压油箱侧的高压电缆头，更换硅脂垫(仅 Polydoros A100发生器)，并涂硅脂封装",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "清理 X线发生器柜中电路板、电源、风扇等元器件积尘",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "在高剂量透视时(>10R/min)应有报警声(KV≥90KV)，在系采集结束时伴有射线结束提示声",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "射线指示灯检查：在透视或曝光时，显示器、吊架上的射线指示灯必须亮",
						setting: ["✔", "/"],
						value: ""
					},{
						form_type: "select",
						title: "",
						name: "透视计时器超时时，伴有报警声，但射线不应中断",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						title2:'5.实时控制器',
						name: "实时控制器内电缆及接头检查",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "清理控制器内各电路板、滤网及风扇的积尘",
						setting: ["✔", "/"],
						value: ""
					},{
						form_type: "select",
						title: "",
						name: "检查风扇的运转状况",
						setting: ["✔", "/"],
						value: ""
					}
					,{
						form_type: "select",
						title: "",
						title2:'6.X线球管冷却水箱及平板探测器的冷却装置',
						name: "检查球管和水箱两端的水管及接头，确保无漏水",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "更换水箱泵头滤网",
						setting: ["✔", "/"],
						value: ""
					},{
						form_type: "select",
						title: "",
						name: "检查水箱的水平面，如有必要加注蒸馏水",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "检查水箱功能，按下水箱启动按钮，风扇和水泵正常运转",
						setting: ["✔", "/"],
						value: ""
					},{
						form_type: "select",
						title: "",
						name: "检查油泵停转的蜂鸣报警器功能，断开水箱端的电缆 X1.1，应有连续的报警声",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "检查平板探测器冷却装置的制冷剂液面，如有必要加注制冷剂",
						setting: ["✔", "/"],
						value: ""
					},
					
					{
						form_type: "select",
						title: "",
						title2: "7.显示器吊架",
						name: "显示器吊架悬挂天轨的紧固螺丝，经检查确认紧固力矩为50士5NM",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "检查悬挂天轨两端的堵头",
						setting: ["✔", "/"],
						value: ""
					},
					
					{
						form_type: "select",
						title: "",
						name: "上下移动显示器吊架，上升应比下降稍容易.如有必要进行平衡调整.(气压弹簧)",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "检查显示器吊架各方向运动是否顺畅",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "检查显示器吊架有无溜车现象，如有，进行必要的调整",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "清理盖板及扶手上的造影剂等污物",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "检查显示器吊架纵向移动和旋转的刹车功能",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						title2: "8.悬吊铅屏风",
						name: "铅屏风吊架的紧固螺丝,经检查确认紧固力矩为 25士5NM",
						setting: ["✔", "/"],
						value: ""
					},{
						form_type: "select",
						title: "",
						name: "检查铅屏风吊架、吊臂、运动小车、铅玻璃是否有破损",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "检查铅屏风吊架两端的堵头是否紧固",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "检查运动小车的运动及刹车功能",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "检查铅屏风吊臂上下左右运动是否平衡，如有必要进行调整",
						setting: ["✔", "/"],
						value: ""
					},{
						form_type: "select",
						title: "",
						name: "检查手术灯的功能及安装状况(如有)",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "检查高压注射器的联接线(如有)",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "清理、除垢",
						setting: ["✔", "/"],
						value: ""
					},
					
					{
						form_type: "select",
						title: "",
						title2: "9.落地/悬吊C臂",
						name: "落地C臂底座六个紧固螺丝，经检查紧固力矩为52士5NM",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "旋转马达固定螺丝,经检查紧固力矩为25+2.5NMC",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "臂头脚位运动马达,滑轨及轴承紧固和破损检查",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "运动齿带松紧检查,侧偏误差士3mm",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "旋转 DSA支撑底板不能与地面有任何的接触,清理其间的所有杂物以保证绝缘",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "C 臂旋转运动齿轮的清理及润滑",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "C 臂表面、导轨的清理及润滑",
						setting: ["✔", "/"],
						value: ""
					},{
						form_type: "select",
						title: "",
						name: "平板探测器上下运动机构的清理和润滑",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "C臂移动机构的清理及润滑",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "电缆套管的状况检查",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "使能开关(DMG)功能检查：在使能开关未按下的情况下，操作C臂操纵杆，C臂应无任何运动，按下使能开关(DMG)，运动正常",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "检查所有安全限位开关是否功能正常",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "防碰撞开关功能检查：在C臂运动过程中，接触防碰撞开关，及其运动应立即停止",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "急停开关功能检查：在C臂运动过程中，按下急停按钮，机械运动应立即停止",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "为确保 C臂移动轻柔停顿,在停止位置时停止挡块应被压进 1mm左右,如超出此范围进行电位器线性调整",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "检查 C臂零位的位置是否准确，如否，进行电位器线性调整",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "C臂外盖清理安装，如有必要进行补漆",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "检查 C 臂各项运动是否正常",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						title2: "10.病人床",
						name: "床面/床体保养：床面升至最高点，插入安全锁，清理床面纵/横向运动的导轨及各接触面，清理并润滑床体旋转的齿轮盘",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "病人床紧固安装检查：落地C臂和悬吊C臂(如有)停泊位置，升高病床至最高点，床板在中间并在头端、床体未旋转和横向运动被锁，放置约 80kg重物于床面头端，检查床体和底座的紧固螺丝状况，把床板和重物移至脚端，检查紧固螺丝的状况.同样条件下，将床体左或右旋转90度，分别检查各紧固螺丝的状况",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "床面液压升降系统状况检查：如液压系统有漏油现象，应立即更换整个升降系统",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "床面损坏检查：如发现有尖锐边缘应及时处理",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "病人床各附件检查(含手托、头托、扶手及输液架)",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "床面纵/横向运动刹车检查：正常情况下，(有刹车)，床面应不能手动.蘑菇按钮按下时，床面应手动自如",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "急停按钮功能检查：急停按钮按下时，床面/床体各运动应停止",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "床面防碰撞开关检查：床面向下运动时，提起床面板，床面运动应立即停止",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "床面板类型检测检查",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "床面升降运动检查：在最高或最低点时，床面横纵向运动应手动自如.床面/升降至最高/最低点时应平滑停顿，否则进行线性调整",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "清理各盖板，如有必要进行补漆",
						setting: ["✔", "/"],
						value: ""
					},
					
					{
						form_type: "select",
						title: "",
						title2: "11.用户界面",
						name: "检查各用户界面是否安全、牢固，并检查其状况，如发现有破损应及时更换",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "清理各控制台(勿用研磨剂清理显示屏)",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "清理脚闸和手闸，确保各脚踏板下面无任何杂物",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "ECC及其操纵杆功能检查",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "控制台各按钮，操纵杆及显示检查",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						name: "脚闸各脚踏板及手闸各按钮功能检查",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "select",
						title: "",
						title2: "12.系统使用状态清零及时间调整",
						name: "系统时间检查调整",
						setting: ["✔", "/"],
						value: ""
					}, {
						form_type: "select",
						title: "",
						name: "系统使用状态清零",
						setting: ["✔", "/"],
						value: ""
					},
					{
						form_type: "text",
						title: "质量确认及保养总结",
						name: "保养中发现的问题",
						setting: [],
						value: ""
					}
				]
			},
			isPdf: {
				type: Boolean,
				default: false
			},
		},
		data() {
			return {
			}
		},
		methods: {
			changeR(e, index) {
				this.arrList[index].value = e.detail.value == '✔' ? 1 : 2
			},
			getArr() {
				this.$emit('geArr', this.arrList)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.repair_main {
		margin: 20rpx 0;
		background-color: #fff;
		border-radius: 20rpx;
		overflow: hidden;
	}

	.repair-left {
		width: 10rpx;
		height: 32rpx;
		margin-right: 10rpx;
		background-color: #1A66FF;
	}
	.title {
		padding: 16rpx 12rpx;
		background-color: #fff;
		font-size: 32rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 600;
		color: #434343;
		display: flex;
		align-items: center;
		justify-content: flex-start;
	}
	.title2 {
		padding:12rpx;
		background-color: #fff;
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 600;
		color: #434343;
		display: flex;
		align-items: center;
		justify-content: flex-start;
	}
	.border_ {
		height: 2rpx;
		background-color: #EBEEF1;
	}

	.dis {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.f_13 {
		font-size: 26rpx;
		margin-bottom: 16rpx;
	}

	.card-detail {
		background-color: #FFFFFF;

		.ful-detail {
			margin: 0 10rpx;
			padding: 20rpx 10rpx 6rpx;

			.detail-left {
				font-size: 28rpx;
				font-weight: 500;
				margin-bottom: 14rpx;
				color: #3B3D3D;
				line-height: 33rpx;
			}

			.detail-right {
				font-size: 28rpx;
				font-weight: 500;
				color: #000;
				padding: 14rpx 20rpx;
				line-height: 50rpx;
			}
		}
	}

	/* 设置input框提示内容的样式 */
	input::-webkit-input-placeholder {
		color: #434343;
	}

	/*webkit 内核浏览器*/
	input::-moz-placeholder {
		color: #434343;
	}

	/*Mozilla Firefox 19+*/
	input:-moz-placeholder {
		color: #434343;
	}

	/*Mozilla Firefox 4 to 18*/
	input:-ms-input-placeholder {
		color: #434343;
	}

	/* 设置textarea框提示内容的样式 */
	textarea::-webkit-input-placeholder {
		color: #434343;
	}

	/*webkit 内核浏览器*/
	textarea::-moz-placeholder {
		color: #434343;
	}

	/*Mozilla Firefox 19+*/
	textarea:-moz-placeholder {
		color: #434343;
	}

	/*Mozilla Firefox 4 to 18*/
	textarea:-ms-input-placeholder {
		color: #434343;
	}

	/deep/ .xp-picker-mask {
		z-index: 222;
	}
</style>